/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/16
\**********************/
#ifndef __LUA_SCROLLBAR_H__
#define __LUA_SCROLLBAR_H__
#pragma once

#include "../../Core/LuaControl.h"

namespace DuiLib {

class LuaScrollBar : public LuaControl
{
    SDLUA_CLASS_DECLARE(LuaScrollBar);

    int GetOwner(LuaState *L);
    //void SetOwner(CContainerUI* pOwner);

    void SetVisible(bool bVisible);
    void SetEnabled(bool bEnable);
    void SetFocus();

    bool IsHorizontal();
    void SetHorizontal(bool bHorizontal);
    int GetScrollRange();
    void SetScrollRange(int nRange);
    int GetScrollPos();
    void SetScrollPos(int nPos);
    int GetLineSize();
    void SetLineSize(int nSize);

    bool GetShowButton1();
    void SetShowButton1(bool bShow);
    bool GetShowButton2();
    void SetShowButton2(bool bShow);

    int GetButton1NormalImage(LuaState *L);
    int SetButton1NormalImage(LuaState *L);
    int GetButton1HotImage(LuaState *L);
    int SetButton1HotImage(LuaState *L);
    int GetButton1PushedImage(LuaState *L);
    int SetButton1PushedImage(LuaState *L);
    int GetButton1DisabledImage(LuaState *L);
    int SetButton1DisabledImage(LuaState *L);

    int GetButton2NormalImage(LuaState *L);
    int SetButton2NormalImage(LuaState *L);
    int GetButton2HotImage(LuaState *L);
    int SetButton2HotImage(LuaState *L);
    int GetButton2PushedImage(LuaState *L);
    int SetButton2PushedImage(LuaState *L);
    int GetButton2DisabledImage(LuaState *L);
    int SetButton2DisabledImage(LuaState *L);

    int GetThumbNormalImage(LuaState *L);
    int SetThumbNormalImage(LuaState *L);
    int GetThumbHotImage(LuaState *L);
    int SetThumbHotImage(LuaState *L);
    int GetThumbPushedImage(LuaState *L);
    int SetThumbPushedImage(LuaState *L);
    int GetThumbDisabledImage(LuaState *L);
    int SetThumbDisabledImage(LuaState *L);

    int GetRailNormalImage(LuaState *L);
    int SetRailNormalImage(LuaState *L);
    int GetRailHotImage(LuaState *L);
    int SetRailHotImage(LuaState *L);
    int GetRailPushedImage(LuaState *L);
    int SetRailPushedImage(LuaState *L);
    int GetRailDisabledImage(LuaState *L);
    int SetRailDisabledImage(LuaState *L);

    int GetBkNormalImage(LuaState *L);
    int SetBkNormalImage(LuaState *L);
    int GetBkHotImage(LuaState *L);
    int SetBkHotImage(LuaState *L);
    int GetBkPushedImage(LuaState *L);
    int SetBkPushedImage(LuaState *L);
    int GetBkDisabledImage(LuaState *L);
    int SetBkDisabledImage(LuaState *L);

    int SetPos(LuaState *L);
};

}

#endif //__LUA_SCROLLBAR_H__